<?php

namespace App\Http\Controllers\V1;

use App\Http\Controllers\ApiBaseController;
use App\Repositories\UserRepository;
use Illuminate\Http\Request;

/**
 * @property UserRepository repository
 */
class UserController extends ApiBaseController
{
    public function __construct(UserRepository $repository)
    {
        $this->repository = $repository;
    }

    public function info(Request $request){
//        echo 1;die;
//        return auth('api')->user()->getAuthIdentifier();
        return $this->success(auth('api')->user()->getAuthIdentifier());
//        dd(auth('api')->user()->getAuthIdentifier());
    }
}
